<template>
  <div class="app-container">
    <h1>Vue3 + Element Plus 示例</h1>
    <el-button type="primary" @click="handleClick">点击我</el-button>
    <el-button>默认按钮</el-button>
    <el-button type="success">成功按钮</el-button>
    <el-button type="warning">警告按钮</el-button>
    <el-button type="danger">危险按钮</el-button>
  </div>
</template>

<script>
export default {
  name: 'App',
  methods: {
    handleClick() {
      this.$message('Hello Element Plus!')
    }
  }
}
</script>

<style>
.app-container {
  max-width: 600px;
  margin: 50px auto;
  text-align: center;
}

h1 {
  color: #409eff;
  margin-bottom: 30px;
}

.el-button {
  margin: 0 10px 10px 0;
}
</style>